import request from '@/utils/request'

export function getConstructionUnitList(data) {
  return request({
    url: '/api/merchantManage/constructionUnit/getConstructionUnitList',
    method: 'post',
    data
  })
}

// 新增建设单位
export function addConstructionUnit(data) {
  return request({
    url: '/api/merchantManage/constructionUnit/addConstructionUnit',
    method: 'post',
    data
  })
}
export function updateConstructionUnit(data) {
  return request({
    url: '/api/merchantManage/constructionUnit/updateConstructionUnit',
    method: 'post',
    data
  })
}
export function deleteConstructionUnit(params) {
  return request({
    url: '/api/merchantManage/constructionUnit/deleteConstructionUnit',
    method: 'post',
    params
  })
}
export function getConstructionUnitDetail(params) {
  return request({
    url: '/api/merchantManage/constructionUnit/getConstructionUnitDetail',
    method: 'post',
    params
  })
}

// 供应商列表
export function getSupplierInfoList(data) {
  return request({
    url: '/api/merchantManage/supplierInfo/getSupplierBasicInfoList',
    method: 'post',
    data
  })
}
export function getSupplierFinishInfoList(data) {
  return request({
    url: '/api/merchantManage/supplierInfo/getSupplierFinishInfoList',
    method: 'post',
    data
  })
}
export function addSupplierInfo(data) {
  return request({
    url: '/api/merchantManage/supplierInfo/addSupplierInfo',
    method: 'post',
    data
  })
}
export function updateSupplierInfo(data) {
  return request({
    url: '/api/merchantManage/supplierInfo/updateSupplierInfo',
    method: 'post',
    data
  })
}
export function deleteSupplierInfo(params) {
  return request({
    url: '/api/merchantManage/supplierInfo/deleteSupplierInfo',
    method: 'post',
    params
  })
}
export function getSupplierInfoDetail(params) {
  return request({
    url: '/api/merchantManage/supplierInfo/getSupplierInfoDetail',
    method: 'post',
    params
  })
}

// 新增供应商树
export function addSupplierCategory(data) {
  return request({
    url: '/api/merchantManage/supplierCategory/addSupplierCategory',
    method: 'post',
    data
  })
}
export function updateSupplierCategory(data) {
  return request({
    url: '/api/merchantManage/supplierCategory/updateSupplierCategory',
    method: 'post',
    data
  })
}
export function deleteSupplierCategory(params) {
  return request({
    url: '/api/merchantManage/supplierCategory/deleteSupplierCategory',
    method: 'post',
    params
  })
}
export function getSupplierCategoryTree(params) {
  return request({
    url: '/api/merchantManage/supplierCategory/getSupplierCategoryTree',
    method: 'post',
    params
  })
}
export function addSupplierIndexCategory(data) {
  return request({
    url: '/api/merchantManage/supplierIndexCategory/addSupplierIndexCategory',
    method: 'post',
    data
  })
}
export function deleteSupplierIndexCategory(params) {
  return request({
    url: '/api/merchantManage/supplierIndexCategory/deleteSupplierIndexCategory',
    method: 'post',
    params
  })
}
export function getSupplierIndexCategoryTree(params) {
  return request({
    url: '/api/merchantManage/supplierIndexCategory/getSupplierIndexCategoryTree',
    method: 'post',
    params
  })
}
export function updateSupplierIndexCategory(data) {
  return request({
    url: '/api/merchantManage/supplierIndexCategory/updateSupplierIndexCategory',
    method: 'post',
    data
  })
}
export function getSupplierIndexInfoList(data) {
  return request({
    url: '/api/merchantManage/supplierIndexInfo/getSupplierIndexInfoList',
    method: 'post',
    data
  })
}
export function addSupplierIndexInfo(data) {
  return request({
    url: '/api/merchantManage/supplierIndexInfo/addSupplierIndexInfo',
    method: 'post',
    data
  })
}
export function updateSupplierIndexInfo(data) {
  return request({
    url: '/api/merchantManage/supplierIndexInfo/updateSupplierIndexInfo',
    method: 'post',
    data
  })
}
export function deleteSupplierIndexInfo(params) {
  return request({
    url: '/api/merchantManage/supplierIndexInfo/deleteSupplierIndexInfo',
    method: 'post',
    params
  })
}
export function addSupplierAssessInfo(data) {
  return request({
    url: '/api/merchantManage/supplierAssessInfo/addSupplierAssessInfo',
    method: 'post',
    data
  })
}
export function updateSupplierAssessInfo(data) {
  return request({
    url: '/api/merchantManage/supplierAssessInfo/updateSupplierAssessInfo',
    method: 'post',
    data
  })
}
export function getSupplierAssessBasicInfoList(data) {
  return request({
    url: '/api/merchantManage/supplierAssessInfo/getSupplierAssessBasicInfoList',
    method: 'post',
    data
  })
}
export function deleteSupplierAssessInfo(params) {
  return request({
    url: '/api/merchantManage/supplierAssessInfo/deleteSupplierAssessInfo',
    method: 'post',
    params
  })
}
export function getSupplierAssessInfoDetail(params) {
  return request({
    url: '/api/merchantManage/supplierAssessInfo/getSupplierAssessInfoDetail',
    method: 'post',
    params
  })
}
